package easy;

import java.lang.reflect.Array;

public class Solution_1672 {

    private static int[][] accounts = {{1, 2, 3}, {1, 4, 6}};

    public static void main(String[] args) {
        int max = 0;
        for (int i = 0; i < accounts.length; i++) {
            int[] account = accounts[i];
            max = Math.max(max, m1(account));
        }
        System.out.println(max);
    }

    private static int m1(int[] account) {
        int sum = 0;
        for (int i = 0; i < account.length; i++) {
            sum += account[i];
        }
        return sum;
    }
}
